<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title><{:C('web_site_name')}>-导航编辑管理</title>
<link rel="stylesheet" type="text/css" href="<?php echo APP_TMPL_PATH ; ?>/static/css/common.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo APP_TMPL_PATH ; ?>/static/css/main.css"/>
<script type="text/javascript" src="<?php echo APP_TMPL_PATH ; ?>/static/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo APP_TMPL_PATH ; ?>/static/js/layer/lib.js"></script>
<script type="text/javascript" src="<?php echo APP_TMPL_PATH ; ?>/static/js/layer/layer.min.js"></script>
</head>
<body>


<form action="<?php echo  U("nav/edit") ; ?>&action=doedit&showpage=1" method="post">
<input type="hidden" name="id" value="<?php echo $info['id'];?>">
<div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i>首页<span class="crumb-step">&gt;</span><span class="crumb-name">修改导航</span></div>
        </div>
        
        <div class="result-wrap">
            <div class="result-content">
                    <table class="insert-tab" width="100%">
                        <tbody><tr>
                            <th width="120"><i class="require-red">*</i>分类：</th>
                            <td>
                               <select name="pid">
            <option value="0">一级菜单</option>
            <?php 
            	if($options){           		
            		foreach($options as $row){
						$selected = '';
						if($row['id'] == $info['pid']){
							$selected = "selected='selected'";
						}
            ?>         		
            <option value="<?php echo $row['id'] ?>" <?php echo $selected ;?> <?php if($row['pid'] == 0){echo 'style="background:lightgreen"';}?>><?php echo str_pad("",$row['deep']*3, "-",STR_PAD_RIGHT); ?><?php echo $row['name']; ?></option>
         <?php 
            }

            }         	
        ?> 
             </select>
                            </td>
                        </tr>
                            <tr>
                                <th><i class="require-red">*</i>导航名称：</th>
                                <td>
                                    <input class="common-text required" id="name" name="name" size="40" value="<?php echo $info['name'];?>" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th>排序：</th>
                                <td><input class="common-text" name="disorder" size="50" value="<?php echo $info['disorder'];?>" type="text"></td>
                            </tr>
                             <tr>
                                <th>url地址：</th>
                                <td><input class="common-text" name="url" size="50" value="<?php echo $info['url'];?>" type="text"><i>例如:nav/index 后面不要带/</i></td>
                            </tr>
                            <tr>
                                <th>状态：</th>
                                <td>
                                <input type="radio" name="status" value="1" <?php if($info['status'] == 1 ){echo "checked";} ;?>/> 启用
    							<input type="radio" name="status" value="0" <?php if($info['status'] == 0 ){echo "checked";} ;?> /> 禁用
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                </td>
                            </tr>
                        </tbody></table>
            </div>
        </div>
       
      </form>  
    
   </body>
   </html>    
   
<script>

</script>
        